import { request } from "@/utils/request.js";

export default {
    /**
     * 会员管理-礼品卡-列表
     * @returns
     */
    giftcard(params = {}) {
        return request({
            url: '/user/admin/user_gift/list',
            method: 'post',
            data: params
        })
    },
    /**
   *会员管理--礼品卡-操作
   * @returns
   */
    addGiftcard(params) {
        return request({
            url: '/user/admin/user_gift/create',
            method: 'post',
            data: params,
        })
    },
    /**
    *会员管理--礼品卡-操作参数
    * @returns
    */
    addGiftcardParams(params) {
        return request({
            url: '/user/admin/user_gift/create',
            method: 'get',
        })
    },
    /**
     * 会员管理-礼品卡-列表参数
     * @returns
     */
    giftcardParams(params = {}) {
        return request({
            url: '/user/admin/user_gift/list',
            method: 'get',
            params
        })
    },
    memeber_gift_add_config(params = {}) {
        return request({
            url: '/user/admin/user_gift/create',
            method: 'get',
            params
        })
    },
    codeRequest(params) {
        return request({
          url: '/user/admin/sendsms/codeLog',
          method: 'post',
          data:params
        })
    },
    codeRequestParams(params) {
        return request({
          url: '/user/admin/sendsms/codeLog',
          method: 'get',
          params
        })
    },
    reSendRecord(params) {
        return request({
          url: '/user/admin/sendsms/sendNew',
          method: 'post',
          data:params
        })
    },
    codeSend(params) {
        return request({
          url: '/user/admin/sendsms/sendCode',
          method: 'post',
          data:params
        })
    },
    codeSendParams(params) {
        return request({
          url: '/user/admin/sendsms/sendCode',
          method: 'get',
          params
        })
    },
    userList(params) {
        return request({
          url: '/user/admin/user/list',
          method: 'post',
          data:params
        })
    },
    userListParams(params) {
        return request({
          url: '/user/admin/user/list',
          method: 'get',
        })
    },
    delUser(params) {
        return request({
          url: '/user/admin/user/delUser',
          method:'post',
          data:params,
        })
    },
    userDetail(id) {
        return request({
          url: `/user/admin/user/user_info?id=`+id,
          method: 'get',
        })
    },
    updateUserParams(id) {
        return request({
          url: `/user/admin/user/update?id=`+id,
          method: 'get',
        })
    },
    updateUser(params) {
        return request({
          url: '/user/admin/user/update',
          method: 'post',
          data:params
        })
    },
    notepad(params) {
        return request({
          url: `/user/admin/user/notepad`,
          method: 'post',
          data:params
        })
    },
    addNotepad(params) {
        return request({
          url: `/user/admin/user/createNotepad`,
          method: 'post',
          data:params
        })
    },
    updatNotepad(params) {
        return request({
          url: `/user/admin/user/updateNotepad`,
          method: 'post',
          data:params
        })
    },
    orderList(id) {
        return request({
          url: `/user/admin/user/orderTotal?id=`+id,
          method: 'get',
        })
    },
    member_white_add_config() {
        return request({
          url: '/user/admin/white/update',
          method: 'get',
        })
    },
    member_white_update_config(id) {
        return request({
          url: `/user/admin/white/update/id/${id}`,
          method: 'get',
        })
    },
    
    member_white_add(data) {
        return request({
          url: '/user/admin/white/update',
            method: 'post',
          data
        })
    },
    member_white_list(data) {
        return request({
          url: '/user/admin/white/list',
          method: 'post',
          data
        })
    },
    member_white_list_del(data) {
        return request({
          url: '/user/admin/white/delete',
          method: 'post',
          data
        })
    },
    member_bank_detail(id) {
        return request({
          url: "/user/admin/bank/info/id/" + id,
          method: "get",
        });
    },
    member_bank_List_log(data) {
        return request({
          url: "/user/admin/bankLog/list",
          method: "post",
          data,
        });
    },
    member_bank_List_recheck(data) {
        return request({
          url: "/user/admin/bank/revokeState",
          method: "post",
          data,
        });
    },
    member_bank_List_params(data) {
        return request({
          url: "/user/admin/bank/list",
          method: "get",
          data,
        });
    },
    member_bank_List(data) {
        return request({
          url: "/user/admin/bank/list",
          method: "post",
          data,
        });
    },
    member_ticket_list_config() {
        return request({
          url: "/user/admin/withdrawInvoice/list",
          method: "get",
        });
    },
    member_ticket_list(data) {
        return request({
          url: "/user/admin/withdrawInvoice/list",
          method: "post",
          data,
        });
    },
    member_ticket_check_record(data) {
        return request({
          url: "/user/admin/withdrawInvoice/log",
          method: "post",
          data:data
        });
    },
    member_ticket_check_info(id) {
        return request({
          url: `/user/admin/withdrawInvoice/apply/id/${id}`,
          method: "get",
        });
    },
    member_ticket_check(data) {
        return request({
          url: `/user/admin/withdrawInvoice/apply`,
            method: "post",
            data
        });
    },
    
    member_bank_List_check(data) {
        return request({
          url: "/user/admin/bank/audit",
          method: "post",
          data,
        });
  },
  transfer_list(data) {
    return request({
      url: "/user/admin/transfer/list",
      method: "post",
      data,
    });
  },
  transfer_list_params() {
    return request({
      url: "/user/admin/transfer/list",
      method: "get",
    });
  },
  transfer_detail_params(id) {
    return request({
      url: "/user/admin/transfer/info/id/" + id,
      method: "get",
    });
  },
  transfer_audit(data) { 
    return request({
      url: "/user/admin/transfer/audit",
      method: "post",
      data
    });
  },
  check_params(id,type) {
    return request({
      url: `/user/admin/face/update?id=${id}&type=${type}`,
      method: "get",
    });
  },
  check_face_type(data) {
    return request({
      url: `/user/admin/face/update`,
      method: "post",
      data
    });
  },
  face_auth_list(data) {
    return request({
      url: "/user/admin/face/auth",
      method: "post",
      data,
    });
  },
  /**
   *会员管理--客人限制记录
   * @returns
   */
  face_bank_list(data) {
    return request({
      url: "/user/admin/face/bank",
      method: "post",
      data,
    });
  },
  /**
   *会员管理--客人限制记录
   * @returns
   */
  face_transfer_list(data) {
    return request({
      url: "/user/admin/face/transfer",
      method: "post",
      data,
    });
  },
  /**
   *会员管理--客人限制记录
   * @returns
   */
  face_withdrawgj_list(data) {
    return request({
      url: "/user/admin/face/withdrawcn",
      method: "post",
      data,
    });
  },
  face_page_config() {
    return request({
      url: "/user/admin/face/page",
      method: "post",
    });
  },
  auth_list_params() {
    return request({
      url: "/user/admin/auth/list",
      method: "get",
    });
  },
  auth_list(data) {
    return request({
      url: "/user/admin/auth/list",
      method: "post",
      data,
    });
  },
  member_auth_recheck(data) {
    return request({
      url: "/user/admin/auth/revokeState",
      method: "post",
      data,
    });
  },
  auth_detail_params(id) {
    return request({
      url: "/user/admin/auth/dealApply/id/" + id,
      method: "get",
    });
  },
  auth_dealApply(data) {
    return request({
      url: "/user/admin/auth/dealApply",
      method: "post",
      data,
    });
  },
  auth_update_params(id) {
    return request({
      url: "/user/admin/auth/update/user_id/"+ id,
      method: "get",
    });
  },
  auth_update_check(data) {
    return request({
      url: "/user/admin/auth/update",
      method: "post",
      data
    });
  },
  face_invoice_list(data) {
    return request({
      url: "/user/admin/face/withdrawInvoice",
      method: "post",
      data
    });
  },
  widthdraw_total(data) {
    return request({
      url: "/user/admin/withdrawcn/total",
      method: "post",
      data,
    });
  },
  withdraw_list(data) {
    return request({
      url: "/user/admin/withdrawcn/list",
      method: "post",
      data,
    });
  },
  change_select_state(data) {
    return request({
      url: "/user/admin/withdrawcn/auditAll",
      method: "post",
      data,
    });
  },
  revokeState(data) {
    return request({
      url: "/user/admin/withdrawcn/revokeState",
      method: "post",
      data,
    });
  },
  withdraw_list_params() {
    return request({
      url: "/user/admin/withdrawcn/list",
      method: "get",
    });
  },
  widthdraw_info_params(id) {
    return request({
      url: "/user/admin/withdrawcn/info/id/" + id,
      method: "get",
    });
  },
  widthdraw_audit(data) {
    return request({
      url: "/user/admin/withdrawcn/audit",
      method: "post",
      data,
    });
  },
  
  
    
    
    
    
    
    
    
}